package com.java54.wcm4;

public class Test {
	public static void main(String[] args) {
		Printer pri = new Printer();
		A4Paper a = new A4Paper();
		pri.setPaper(a);
		GrayInkBox box = new GrayInkBox();
		pri.setInBox(box);
		pri.Print();

		ColorInkBox bx = new ColorInkBox();
		pri.setInBox(bx);
		B5Paper per = new B5Paper();
		pri.setPaper(per);
		pri.Print();

		A4Paper b = new A4Paper();
		pri.setPaper(b);
		ColorInkBox bo = new ColorInkBox();
		pri.setInBox(bo);
		pri.Print();
	}
}
